for (l := 1; l <= 5; l := l + 1) //read lines of input from user
{
ln.text[l]:=getline(l,current_colour);
showline(l); // show line with changed col's
if (strlower(ln.text[1]) = "/q") goto end; // abort if line 1 is /q
if (strlower(ln.text[l]) = "/q")
{
gotoxy(ln.x[l],ln.y[l]); // blank the /q so it
print(" "); // looks normal
ln.text[l] := ""; // clearline
l:=6; // abort for()
}
}
if (privok("<="+noaliaslevel))
{
if (userealname=FALSE and usr.alias<>"") signature:=usr.alias;
else signature:=usr.name;
print(AVATAR_GOTO, (char)12, (char)24);
print(" ");
print(AVATAR_GOTO, (char)12, (char)24);
print(signcolour+strpad(signature,30,' '));
}
else signature:=getsig(signature); // get signature
saveit:
print(AVATAR_GOTO, (char)16, (char)1, promptcolour+"Line # to edit, "+highlcolour+"S"+promptcolour+" to Save, "+highlcolour+"A"+promptcolour+" to abort? "+highlcolour+"<1-6, "+defaultcolour+"S"+highlcolour+"/a>");
i:=input_ch(CINPUT_ACCEPTABLE,"SA123456");
if (i = 'A') goto end;
if (i = 'S') goto savenow;
if (i = '1') { ln.text[1]:=getline(1,textcolour);
update(1); goto saveit; }
if (i = '2') { ln.text[2]:=getline(2,ln.colour[1]);
current_colour:=ln.colour[1];
update(2); goto saveit; }
if (i = '3') { ln.text[3]:=getline(3,ln.colour[2]);
current_colour:=ln.colour[2];
update(3); goto saveit; }
if (i = '4') { ln.text[4]:=getline(4,ln.colour[3]);
current_colour:=ln.colour[3];
update(4); goto saveit; }
if (i = '5') { ln.text[5]:=getline(5,ln.colour[4]);
current_colour:=ln.colour[4];
update(5); goto saveit; }
if (privok(">"+noaliaslevel))
if (i = '6') { signature:=getsig(signature);
goto saveit; }
savenow:
remove(tmpfile); // remove tmpfile from last time
filecopy(bbsfile,tmpfile); // rename() didn't seem to work too well?!